package com.robotserver.orders.mapper;

import com.robotserver.orders.entity.PddOrders;
import com.robotserver.orders.param.PddOldOrderSyncParam;
import com.robotserver.orders.param.biz.PddOrderPullParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface PddOrdersMapper {
    void add(PddOrders pddOrders);
    void update(PddOrders pddOrders);
    PddOrders getOrder(@Param("ordersn") String ordersn);
    List<PddOrders> getOrderList(PddOrderPullParam param);

    int getOldSyncCount(PddOldOrderSyncParam pddOldOrderSyncParam);

    List<Map> getOldSyncOrder(PddOldOrderSyncParam pddOldOrderSyncParam);

    PddOrders getByOrderId(@Param("orderId") String orderId);

    void deleteOrdersExpired(@Param("expiredTime") Integer expiredTime);

    void updateUpdateTime(@Param("childOrderNo") String childOrderNo);
}